Scroll to navigation

lsm_target_port_network_address_get(3) Libstoragemgmt C API Manual lsm_target_port_network_address_get(3)

NAME

lsm_target_port_network_address_get - Retrieve the network address for the target_port

SYNOPSIS

const char * lsm_target_port_network_address_get (lsm_target_port *tp);

ARGUMENTS

Pointer of lsm_target_port to retrieve network address for.

VERSION

1.0

DESCRIPTION

Retrieve the network address for the target_port. Network address is lower case string which is used by network layer like FC and TCP/IP:
* FC/FCoE:
WWPN (split with : every two digits)
* iSCSI:
<ipv4_address>:<tcp_port>
[<ipv6_address>]:<tcp_port>

NOTE

Address returned is valid until lsm_target_port gets freed, copy return value if you need longer scope. Do not free returned string.

RETURN

string. NULL if argument 'tp' is NULL or not a valid lsm_target_port pointer.

lsm_target_port_network_address_get April 2021